+2008-01-04 Michael Natterer <mitch@imendio.com>
+
+ * gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
+ to set the time in the returned GdkTimeCoords.
+
2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
if (device_coords)
{
coords = _gdk_device_allocate_history (device, *n_events);
-
- for (i=0; i<*n_events; i++)
- gdk_input_translate_coordinates (gdkdev, input_window,
- device_coords[i].data,
- coords[i]->axes, NULL, NULL);
+
+ for (i = 0; i < *n_events; i++)
+ {
+ coords[i]->time = device_coords[i].time;
+
+ gdk_input_translate_coordinates (gdkdev, input_window,
+ device_coords[i].data,
+ coords[i]->axes, NULL, NULL);
+ }
+
XFreeDeviceMotionEvents (device_coords);
*events = coords;